<!--#include file="./doctype.html"-->
<title>企业简介管理-<%=siteTitle%>-后台管理</title>
</head><body>
<div class="wrap">
    <ol class="breadcrumb">
        <li class="active"><a href="<%=fileName%>">列表首页</a></li>
    </ol>
    <form method="get" action="<%=fileName%>" class="form-inline mb10" role="form">
        <input type="hidden" value="index" name="q">
        <div class="form-group">
            <label for="keyword">搜索：</label>
            <input type="text" class="form-control input-sm clean" id="keyword" name="keyword" value="<%=app.hec(keyword)%>" placeholder="标题、内容关键字">
        </div>
        <button type="submit" class="btn btn-sm btn-primary">确定</button>
    </form>
    <% if isArray(data) then %>
        <table class="table table-bordered">
            <thead>
                <tr>
                    <th>id</th>
                    <th>标题</th>
                    <th>内容</th>
                    <th>排序先后</th>
                    <th>启用？</th>
                    <th>前台查看</th>
                </tr>
            </thead>
            <tbody>
            <% for i = 0 to ubound(data, 2) %>
                <% Tid = data(0,i) %>
                <tr>
                    <td><label><input type="checkbox" name="batchId" value="<%=Tid%>" /> <%=Tid%></label></td>
                    <td><a href="<%=fileName%>?q=edit&id=<%=Tid%>"><%=data(1,i)%></a></td>
                    <td><%=Left(app.noCode(data(2,i)), 50)%>...</td>
                    <td><%=data(3,i)%></td>
                    <td class="setBool" data-value="<%=data(4,i)%>"></td>
                    <td><a target="_blank" href="<%=app.getInfoUrl(4,Tid,1)%>">浏览</a></td>
                </tr>
            <% next %>
            </tbody>
        </table>
        <!--#include file="page.html"-->
		<div class="btn-group">
            <span class="btn btn-sm btn-default selectAll">
                <i class="glyphicon glyphicon-th"></i> 全选/反选
            </span>
            <span class="btn btn-sm btn-default deleteBatch">
                <i class="glyphicon glyphicon-trash"></i> 删除
            </span>
            <span class="btn btn-sm btn-default statusBatch" data-status="0">
                <i class="glyphicon glyphicon-ok"></i> 启用
            </span>
            <span class="btn btn-sm btn-default statusBatch" data-status="1">
                <i class="glyphicon glyphicon-minus-sign"></i> 禁用
            </span>
            <span class="btn btn-sm btn-default editBatch">
                <i class="glyphicon glyphicon-edit"></i> 修改
            </span>
        </div>
    <% else %>
        <!--#include file="noData.html"-->
    <% End if %>
    <!--#include file="loadTime.html"-->
</div>
<script>
$(document).ready(function(){
    $('.setBool').setBool(0);
$(this)
    .on('click', '.statusBatch', function() {
        $(this).statusBatch();
    })
    .on('click', '.deleteBatch', function() {
        $.deleteBatch();
    })
    .on('click', '.editBatch', function() {
        $.editBatch();
    })
});
</script>
</body>
</html>